﻿@model SAKS.Models.Award
    <fieldset>
        <legend>奖项信息</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            <input type="text" class="validate[required,ajax[AjaxAwardShouldntExist]]" id="Name" name="Name" value="@(Model != null ? Model.Name : "")"/>
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Year)
        </div>
        <div class="editor-field">
            <input type="text" class="datepicker validate[required]" id="Year" name="Year" value="@(Model != null ? Model.Year.ToString("yyyy-MM") : "")"/>
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.AwardType)
        </div>
        <div class="editor-field">
            <input type="text" class="validate[required]" id="AwardType" name="AwardType" value="@(Model != null ? Model.AwardType : "")"/>
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.AwardLevel)
        </div>
        <div class="editor-field">
            <input type="text" class="validate[required]" id="AwardLevel" name="AwardLevel" value="@(Model != null ? Model.AwardLevel : "") "/>
        </div>

        <p>
            <input type="submit" value="保存" />
        </p>
    </fieldset>

